#include<stdio.h>
#include<stdlib.h>
#include<string.h>

typedef enum{
    RED, YELLOW , GREEN
}LightState;


void Light(LightState state){
    switch(state){
        case RED:
            printf("Light is RED. Please stop!\n");
            break;
        case GREEN:
            printf("Light is GREEN. You can go!\n");
            break;
        case YELLOW:
            printf("Light is YELLOW. Special signal!\n");
            break;
        default:
            printf("Unknown light state!\n");
    }
}
int main(){
    LightState state[] = {RED, GREEN, YELLOW};
    LightState current_light = state[0];
    for(int i=0;i<3;i++){
        current_light = state[i];
        Light(current_light);
    }
    for(int i=0;i<3;i++){
        current_light = state[i];
        Light(current_light);
    }
    return 0;

}